/*
 * XML Type:  RecurringInterModRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.RecurringInterModRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML RecurringInterModRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class RecurringInterModRequestImpl extends net.ofx.types.x2003.x04.impl.AbstractRecurringInterRequestImpl implements net.ofx.types.x2003.x04.RecurringInterModRequest
{
    
    public RecurringInterModRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RECSRVRTID$0 = 
        new javax.xml.namespace.QName("", "RECSRVRTID");
    private static final javax.xml.namespace.QName RECURRINST$2 = 
        new javax.xml.namespace.QName("", "RECURRINST");
    private static final javax.xml.namespace.QName INTERRQ$4 = 
        new javax.xml.namespace.QName("", "INTERRQ");
    private static final javax.xml.namespace.QName MODPENDING$6 = 
        new javax.xml.namespace.QName("", "MODPENDING");
    
    
    /**
     * Gets the "RECSRVRTID" element
     */
    public java.lang.String getRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RECSRVRTID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "RECSRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(RECSRVRTID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "RECSRVRTID" element
     */
    public void setRECSRVRTID(java.lang.String recsrvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RECSRVRTID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RECSRVRTID$0);
            }
            target.setStringValue(recsrvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "RECSRVRTID" element
     */
    public void xsetRECSRVRTID(net.ofx.types.x2003.x04.ServerIdType recsrvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(RECSRVRTID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(RECSRVRTID$0);
            }
            target.set(recsrvrtid);
        }
    }
    
    /**
     * Gets the "RECURRINST" element
     */
    public net.ofx.types.x2003.x04.RecurringInstructions getRECURRINST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().find_element_user(RECURRINST$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "RECURRINST" element
     */
    public void setRECURRINST(net.ofx.types.x2003.x04.RecurringInstructions recurrinst)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().find_element_user(RECURRINST$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().add_element_user(RECURRINST$2);
            }
            target.set(recurrinst);
        }
    }
    
    /**
     * Appends and returns a new empty "RECURRINST" element
     */
    public net.ofx.types.x2003.x04.RecurringInstructions addNewRECURRINST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().add_element_user(RECURRINST$2);
            return target;
        }
    }
    
    /**
     * Gets the "INTERRQ" element
     */
    public net.ofx.types.x2003.x04.InterRequest getINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterRequest target = null;
            target = (net.ofx.types.x2003.x04.InterRequest)get_store().find_element_user(INTERRQ$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "INTERRQ" element
     */
    public void setINTERRQ(net.ofx.types.x2003.x04.InterRequest interrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterRequest target = null;
            target = (net.ofx.types.x2003.x04.InterRequest)get_store().find_element_user(INTERRQ$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InterRequest)get_store().add_element_user(INTERRQ$4);
            }
            target.set(interrq);
        }
    }
    
    /**
     * Appends and returns a new empty "INTERRQ" element
     */
    public net.ofx.types.x2003.x04.InterRequest addNewINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterRequest target = null;
            target = (net.ofx.types.x2003.x04.InterRequest)get_store().add_element_user(INTERRQ$4);
            return target;
        }
    }
    
    /**
     * Gets the "MODPENDING" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getMODPENDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MODPENDING$6, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "MODPENDING" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetMODPENDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(MODPENDING$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "MODPENDING" element
     */
    public void setMODPENDING(net.ofx.types.x2003.x04.BooleanType.Enum modpending)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MODPENDING$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MODPENDING$6);
            }
            target.setEnumValue(modpending);
        }
    }
    
    /**
     * Sets (as xml) the "MODPENDING" element
     */
    public void xsetMODPENDING(net.ofx.types.x2003.x04.BooleanType modpending)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(MODPENDING$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(MODPENDING$6);
            }
            target.set(modpending);
        }
    }
}
